import request from '@/utils/request'

//获取轮播图列表
export function getBannerList(data) {
	return request({
		method: 'get',
		url: 'tbSysImage/queryPageList',
		params: data,
	})
}

//添加轮播图
export function addedBanner(data) {
	return request({
		method: 'post',
		url: 'tbSysImage/add',
		data,
	})
}

//修改轮播图
export function updateBanner(data) {
	return request({
		method: 'post',
		url: 'tbSysImage/update',
		data,
	})
}

//删除轮播图
export function deleteBanner(data) {
	return request({
		method: 'get',
		url: 'tbSysImage/delete/' + data,
	})
}

//获取轮播图详情
export function getBannerDetail(data) {
	return request({
		method: 'get',
		url: 'tbSysImage/query/' + data,
	})
}